﻿/*
 * @Author       : 吴豪
 * @Date         : 2021-12-4 15:56:22
 * @FilePath     : \book-manage-front\config\routes.ts
 * @Description  : 路由配置
 */

export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        name: 'login',
        path: '/user/login',
        component: './User/login',
      },
    ],
  },

  {
    path: '/page',
    name: '组织架构',
    icon: 'dashboard',
    routes: [
      {
        name: '图书管理',
        path: '/page/bookManage',
        component: './bookManage',
      },
      {
        name: '用户管理',
        path: '/page/userManage',
        component: './userManage',
      },
      {
        name: '分类管理',
        path: '/page/classificationManage',
        component: './classificationManage',
      },
    ],
  },
  {
    path: '/',
    redirect: '/page/bookManage',
  },
  {
    component: './404',
  },
];
